package com.xiaoyu.izf.repository;

import com.xiaoyu.izf.model.VipInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface VipInfoDao extends JpaRepository<VipInfo,Integer> {

    public VipInfo findOneById(int id);

    @Query("from VipInfo where id in(1,2,3) order by id asc")
    public List<VipInfo> findAllToApp();
}
